#include "loop.h"
#include "face.h"
#include <iostream>


Loop::Loop(Face* _f)
: nextl( _f->getLoop() )
, prevl(NULL)
{
	Loop* loopOfFace = _f->getLoop();
	if( loopOfFace )
	{
		Loop* loop = loopOfFace->getPrevLoop();
		loop = this;
	}
	_f->setLoop ( this);
	lface = _f;

}

void Loop::setLedg(HalfEdge* _newhe)
{
		ledg = _newhe;
}

Loop* Loop::getPrevLoop()
{
  return prevl;
}

Face* Loop::getFace()
{
	return lface;
}
Loop* Loop::getNextl()
{
	return nextl;
}
HalfEdge* Loop::getLedg()
{
	return ledg;
}